package com.zhl.spark.core.rddtransform

import com.zhl.spark.core.BasicRdd

/**
 * @program: demos
 * @description: ${description}
 * @author: 刘振华
 * @create: 2020-12-01 10:56
 **/
object MemoryRdd extends BasicRdd {
    def main(args: Array[String]): Unit = {
        test()
    }

    override def logic(): Unit = {
        val seq = Seq[Int](1, 2, 3, 4)

//        val rdd = sc.parallelize(seq)
        val rdd = sc.makeRDD(seq)

        rdd.collect().foreach(println)
    }
}
